package com.atmilan.quartz.mapper;

import com.atmilan.quartz.model.entity.pure.PureImages;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * pure图片表 Mapper 接口
 * </p>
 *
 * @author wuzp
 * @since 2021-12-27
 */
@DS("source_hiku")
public interface PureImagesMapper extends BaseMapper<PureImages> {

    @Update("truncate table pure_images")
    void deleteAll();

    @Update("truncate table pure_images_back")
    void deleteProductBack();

    @Update("insert into pure_images_back select * from pure_images")
    void copyProductBack();

}
